package com.shy.springframework.test.bean;

import com.shy.springframework.beans.factory.annotation.Autowired;
import com.shy.springframework.beans.factory.annotation.Value;
import com.shy.springframework.stereotype.Component;
import sun.util.resources.LocaleData;

import java.time.LocalDate;

/**
 * @author yzpang
 * @desc:
 * @date: 2023/2/14 13:24
 */
@Component
public class Husband{
    @Value("yzpang")
    private String name;
    @Value("34")
    private int age;

    @Value("2023-02-16")
    private LocalDate date;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String queryWife(){
        return "Husband.wife";
    }
}
